package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;

import play.data.validation.Email;
import play.data.validation.MaxSize;
import play.data.validation.Password;
import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
@Table(name="mail")
public class Mail extends Model {
	
	@Required
	@Lob
	@MaxSize(500000)
	public String receivers;
	
	@Required
	public String title;
	
	@Required
	@Lob
	@MaxSize(500000)
	public String content;
	
	public Date sendTime;
	
	@Override
	public String toString() {
		return "Mail [receivers=" + receivers + ", title=" + title
				+ ", content=" + content + ", sendTime=" + sendTime + "]";
	}
	
	
	
}
